package com.ruoyi.product.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.ruoyi.common.core.web.domain.BaseEntity;
import lombok.Data;

import java.util.Date;

@Data
public class WorkOrderVo extends BaseEntity {
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /**
     *  工单号
     */
    private String wo;
    /**
     * 数量
     */
    private Double qty;

    /**
     * 物料号
     */
    private String materialCode;


    private String materialName;


    private String materialSpec;


    /**
     *
     */
    private String name;

    /**
     *
     */
    private String remark;

    private String batchCode;

    /**
     *  开始时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    /**
     * 1.未开工 2.已开工 3.暂停 4.已完工
     */
    private String status;


    private String type;

    /**
     * 当前工序
     */
    private Integer proceduresNum;

    /**
     * 当前工序
     */
    private String proceduresName;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date planStartTime;

    /**
     * 计划结束时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date planEndTime;

    /**
     * 最大值
     */
    private Integer maxCount;



}
